class BaseScreen extends eui.Component {
	public constructor() {
		super();
	}

    protected sourceLoadOver:boolean = false;
	protected childrenCreated(): void {
        super.childrenCreated();
        this.resize();
    }

	public resize():void
	{
		this.height=utils.CoreData.instance.screenH;
	}

    public initOldLayer(oldContainer:egret.DisplayObjectContainer,contentH:number):void
    {
        // let imgNum:number=Math.ceil(contentH/300);
        // for(let i=0;i<imgNum;i++){
        //     let oldImg:egret.Bitmap = new egret.Bitmap(RES.getRes("old_effect_png"));
        //     oldImg.x=0;
        //     oldImg.y=300*i;
        //     oldContainer.addChild(oldImg);
        // }
        
    }

	public backOut(target:egret.DisplayObject,easeTime:number,offertX:number,offsetY:number,delayTime:number,callBack=null):void
    {
        // target.x+=offertX;
        // target.y+=offsetY;
        // if(callBack){
        //     TweenMax.to(target,easeTime,{alpha:1,x:target.x-offertX,y:target.y-offsetY,ease:Back.easeOut,delay:delayTime,onComplete:()=>{
        //         callBack();
        //     }});
        // }else{
        //     TweenMax.to(target,easeTime,{alpha:1,x:target.x-offertX,y:target.y-offsetY,ease:Back.easeOut,delay:delayTime});
        // }
    }

    public cubicOut(target:egret.DisplayObject,easeTime:number,offertX:number,offsetY:number,delayTime:number,callBack=null):void
    {
        // target.x+=offertX;
        // target.y+=offsetY;
        // if(callBack){
        //     TweenMax.to(target,easeTime,{alpha:1,x:target.x-offertX,y:target.y-offsetY,ease:Cubic.easeOut,delay:delayTime,onComplete:()=>{
        //         callBack();
        //     }});
        // }else{
        //     TweenMax.to(target,easeTime,{alpha:1,x:target.x-offertX,y:target.y-offsetY,ease:Cubic.easeOut,delay:delayTime});
        // }
    }

    public showSpeak(speak:eui.Group):void
    {
        // speak.visible=true;
        // let bg:egret.DisplayObject=<egret.DisplayObject>speak.getChildAt(0);
        // let word:egret.DisplayObject=<egret.DisplayObject>speak.getChildAt(1);
        // bg.alpha=0;
        // word.alpha=0;
        // bg.scaleY=.9;
        // TweenMax.to(bg,.15,{alpha:1,scaleY:1,ease:Linear.easeOut});
        // this.cubicOut(word,.5,0,14,0.15);
    }

	public dispose(): void {

	}
}